package com.ruoyi.tongban.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tongban.mapper.FaceConfigMapper;
import com.ruoyi.tongban.domain.FaceConfig;
import com.ruoyi.tongban.service.IFaceConfigService;

/**
 * 参数配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-04-08
 */
@Service
public class FaceConfigServiceImpl implements IFaceConfigService 
{
    @Autowired
    private FaceConfigMapper faceConfigMapper;

    /**
     * 查询参数配置
     * 
     * @param configId 参数配置ID
     * @return 参数配置
     */
    @Override
    public FaceConfig selectFaceConfigById(Integer configId)
    {
        return faceConfigMapper.selectFaceConfigById(configId);
    }

    /**
     * 查询参数配置列表
     * 
     * @param faceConfig 参数配置
     * @return 参数配置
     */
    @Override
    public List<FaceConfig> selectFaceConfigList(FaceConfig faceConfig)
    {
        return faceConfigMapper.selectFaceConfigList(faceConfig);
    }

    /**
     * 新增参数配置
     * 
     * @param faceConfig 参数配置
     * @return 结果
     */
    @Override
    public int insertFaceConfig(FaceConfig faceConfig)
    {
        faceConfig.setCreateTime(DateUtils.getNowDate());
        return faceConfigMapper.insertFaceConfig(faceConfig);
    }

    /**
     * 修改参数配置
     * 
     * @param faceConfig 参数配置
     * @return 结果
     */
    @Override
    public int updateFaceConfig(FaceConfig faceConfig)
    {
        faceConfig.setUpdateTime(DateUtils.getNowDate());
        return faceConfigMapper.updateFaceConfig(faceConfig);
    }

    /**
     * 批量删除参数配置
     * 
     * @param configIds 需要删除的参数配置ID
     * @return 结果
     */
    @Override
    public int deleteFaceConfigByIds(Integer[] configIds)
    {
        return faceConfigMapper.deleteFaceConfigByIds(configIds);
    }

    /**
     * 删除参数配置信息
     * 
     * @param configId 参数配置ID
     * @return 结果
     */
    @Override
    public int deleteFaceConfigById(Integer configId)
    {
        return faceConfigMapper.deleteFaceConfigById(configId);
    }
}
